<template>
  <div class="q-pa-md">
    <t-range
      class="tr-range-form"
      v-model="model"
      color="#f33"
      :disable="false"
      :drag-only-range="false"
      :drag-range="true"
      :inner-min="-16"
      :inner-max="12"
      :min="-20"
      :max="20"
      :readonly="false"
      :step="2"
      :markers="true"
      :markerStep="4"
      :marker-labels="v => v + '℃'"
      :left-label-value="model.min + '度'"
      :right-label-value="model.min + '度'"
      :show-label="true"
      :label-always="true"
      :tabIndex="1"
      :visible="true"
      label="双花双"
      :hideLabel="false"
      labelPosition="top"
      popLabelPosition="top"
      markerPosition="label"
    />
  </div>
</template>

<script>
import { ref } from 'vue';

export default {
  setup() {
    return {
      model: ref({
        min: -10,
        max: 5,
      }),
    };
  },
};
</script>
